import StrategyCode.ConcreteStrategy.*;
import StrategyCode.EncryptContext;

public class Main {
    public static void main(String[] args) {
        String data = "HelloHappySmileYeah";

        EncryptContext context = new EncryptContext(new CaesarEncrypt(3));
        System.out.println("凯撒加密: " + context.encrypt(data));

        context.setStrategy(new DESEncrypt());
        System.out.println("DES加密: " + context.encrypt(data));

        context.setStrategy(new AESEncrypt());
        System.out.println("AES加密: " + context.encrypt(data));
    }
}
